package com.achobeta.recruitment.dao.student;

import com.achobeta.recruitment.model.Student;
import com.achobeta.recruitment.model.vo.StudentVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {
    int insert(Student row);

    int insertSelective(Student row);

    Student selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Student row);

    int updateByPrimaryKey(Student row);


    /**
     * 获取附带学生信息的学生列表
     * @return
     */
    List<StudentVO> getStudentList();

    /**
     * 根据openid查询学生表
     * @return
     */
    Student selectStudentByOpenid(String openid);
}